const TOKENKEY = 'toutiao'
const setToken = tokenObj => {
  window.localStorage.setItem(TOKENKEY, JSON.stringify(tokenObj))
}
const removeToken = () => {
  window.localStorage.removeItem(TOKENKEY)
}
const getToken = () => {
  return JSON.parse(window.localStorage.getItem(TOKENKEY))
}
export { setToken, removeToken, getToken }
